﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoardBroker
{  
    /// <summary>
    /// USB通断板控制动作完成事件
    /// </summary>
    public class USBControlActionFinishedEventArgs : EventArgs
    {
        public readonly USBControlCommand Command;
        public readonly USB_CONTROL_ACTION_STATUS State;
        public readonly string Message;
        public USBControlActionFinishedEventArgs(USBControlCommand cmd, USB_CONTROL_ACTION_STATUS value, string msg)
        {
            this.Command = cmd;
            this.State = value;
            this.Message = msg;
        }
    };

    /// <summary>
    /// 电机命令消息更新事件
    /// </summary>
    public class USBCommandSendEventArgs : EventArgs
    {
        public readonly USBControlCommand Command;
        public USBCommandSendEventArgs(USBControlCommand command)
        {
            this.Command = command;
        }
    };
}
